package yb.ecp.fast.feign;


import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import yb.ecp.fast.infra.infra.ActionResult;

import java.util.List;

/**
 * Created by john on 2017/12/6.
 */
@EnableFeignClients
@FeignClient(name = "fast-gen-service")
public interface FastGenClient {
    @RequestMapping(value = "/guid/number", method = RequestMethod.GET)
    ActionResult<Long> numberGuid();

    @RequestMapping(value = "/guid/text", method = RequestMethod.GET)
    ActionResult<String> textGuid();

    @RequestMapping(value = "/guid/batchNumber", method = RequestMethod.GET)
    ActionResult<List<Long>> batchNumber(@RequestParam("amount") int amount);

    @RequestMapping(value = "/guid/batchText", method = RequestMethod.GET)
    ActionResult<List<String>> batchText(@RequestParam("amount") int amount);

    @RequestMapping(value = "/guid/next",method = RequestMethod.GET)
    ActionResult<Long> newGuid();
    @RequestMapping(value = "/guid/text",method = RequestMethod.GET)
    ActionResult<String> newGuidText();
}
